/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package za.ac.cput.LSPcompliance.model;

import za.ac.cput.LSPcompliance.AccountService;

/**
 *
 * @author Enkosi
 */
public abstract class Account {
    protected String name;
    protected int balance;

    /**
     * @return the balance
     */
    public int getBalance() {
        return balance;
    }

    /**
     * @param balance the balance to set
     */
    public void setBalance(int balance) {
        this.balance = balance;
    }

    /**
     * @return the name
     */
    public String getName() {
        return name;
    }

    /**
     * @param name the name to set
     */
    public void setName(String name) {
        this.name = name;
    }
    abstract double calcTax();
    
    @Override
    public String toString(){
        return name + " " + balance;        
    }
}
